import demo1.Computer;
import demo1.KeyBoard;
import demo1.Mouse;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-05-18
 * Time: 20:56
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();
        computer.powerOn();

        computer.useDevice(mouse);
        computer.useDevice(keyBoard);

        computer.powerOff();
    }
}
